﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order.aspx.cs" Inherits="OF.Web.order" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="res/js/jquery-1.8.1.min.js"></script>
    <script src="res/js/jquery.cookie.js"></script>
     <script src="res/plus/DatePicker/WdatePicker.js"></script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div id="shopcart">
        </div>
        <a href="/user/address.aspx">添加地址</a>
        <h1>提交订单</h1>

        送餐地址<asp:TextBox ID="txtAddr" runat="server"></asp:TextBox> <br />
     
        预约时间<asp:TextBox ID="txtArriveTime" runat="server"  onfocus="WdatePicker({minDate: '%y-%M-#{%d+1} %H:%m:%s}' })"></asp:TextBox>
        人数<asp:TextBox ID="txtnum" runat="server"></asp:TextBox>(位)<br />

        联系电话<asp:TextBox ID="txtphone" runat="server"></asp:TextBox>
        备注<asp:TextBox ID="txtremark" runat="server"></asp:TextBox>

        共记：<span id="sumprice">0</span> 元
     
        <asp:HiddenField ID="hfdishs" runat="server" />
        <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" OnClientClick="return check()" Text="提交订单" />
    </form>
    <script src="res/js/shopcart.js"></script>
    <script>
        $(BuildCart());
        function check() {
            if ($("#hfdishs").val() == "[]") {
                alert("您还没有勾选菜单");
                return false;
            }
            return true;
        }
    </script>
</body>
</html>
